package cn.gdcp.service;

import android.os.Binder;

import java.text.SimpleDateFormat;
import java.util.Date;

public class MyBinder extends Binder{
    public int add(int a,int b) {
        return a + b;
    }
    public String toUpperCase(String a){

        return a.toUpperCase();
    }
    public String toLowerCase(String a){
        return  a.toLowerCase();
    }
    public  String getTime(){
        Date date = new Date();
        SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
        return format.format(date);
    }
    public String reverseWord(String s){
        String[] arr = s.split(" ");
        StringBuffer buffer = new StringBuffer();
        for (String a : arr){
            StringBuffer b = new StringBuffer(a);
            buffer.append(b.reverse()).append(" ");
        }
        return buffer.toString();
    }

}
